﻿namespace Nuclear.Models.DtoModels;

public class GetConsumeCodesResponseDto(
    ConsumeCodeDetail[] details) : BaseResponseDto
{
    public GetConsumeCodesResponseDto()
        : this([]) { }

    public ConsumeCodeDetail[] Data { get; set; } = details;
}

public class ConsumeCodeDetail
{
    public required string SystemId { get; set; }
    public required string MerchantId { get; set; }
    public required string ProductId { get; set; }
    public required string UserId { get; set; }
    public required string BenefitsCardNo { get; set; }
    public required string DistrictId { get; set; }
    public required string Code { get; set; }
    public required bool IsUsed { get; set; }
    public required DateOnly ValidFrom { get; set; }
    public required DateOnly ValidTo { get; set; }

    public required DateTime CreateTime { get; set; }
    public DateTime? UpdateTime { get; set; }
    public DateTime? UseTime { get; set; }
}

